<div class="col-sm-12 mt20" ng-keyup="myKeyup($event)">
  <div class="panel panel-default">
  <div class="panel-body">
  <div class="col-sm-12">
    <div class="row">
      <div class="col-sm-2">
        <input type="text" class="form-control" placeholder="产品名称" ng-model="searchform.sale_name" ng-keyup="myKeyup($event)">
      </div>
      <div class="col-sm-2">
        <input type="text" class="form-control" placeholder="产品编号" ng-model="searchform.sale_code" ng-keyup="myKeyup($event)">
      </div>
      <div class="col-sm-2 ">
        <ui-select ng-model="searchform.sale_genre" theme="bootstrap" ng-keyup="myKeyup($event)" ng-change="change()">
          <ui-select-match placeholder="产品分类">
            {{$select.selected.label}}
          </ui-select-match>
          <ui-select-choices repeat="dicttype.code as dicttype in dictbytypelist | filter: $select.search">
            <span ng-bind-html="dicttype.label | highlight: $select.search"></span>
          </ui-select-choices>
        </ui-select>
      </div>
      <div class="col-sm-2 ">
        <ui-select ng-model="searchform.sale_state" theme="bootstrap" ng-keyup="myKeyup($event)" ng-change="changed()">
          <ui-select-match placeholder="平台状态">
            {{$select.selected.name}}
          </ui-select-match>
          <ui-select-choices repeat="item.value as item in statusArr | filter: $select.search">
            <span ng-bind-html="item.name | highlight: $select.search"></span>
          </ui-select-choices>
        </ui-select>
      </div>
      <div class="col-sm-2">
        <ui-select ng-model="searchform.sk_state" theme="bootstrap" ng-keyup="myKeyup($event)">
          <ui-select-match placeholder="商客状态">
            {{$select.selected.name}}
          </ui-select-match>
          <ui-select-choices repeat="item.value as item in statusArr1 | filter: $select.search">
            <span ng-bind-html="item.name | highlight: $select.search"></span>
          </ui-select-choices>
        </ui-select>
      </div>
      <div class="col-sm-2">
        <button type="submit" class="btn btn-info search  btn-block" ng-click="load()">立即搜索</button>
      </div>
    </div>
  </div>
  </div>
  </div>
  <!-- searchArea -->
        
  <div class="panel panel-default">
      <div class="panel-body">
        <table class="table table-condensed table-hover table-bordered">
          <thead>
            <tr>
              <th class="col-md-4 text-center">产品</th>
              <th class="col-md-2 text-center">产品分类</th>
              <th class="col-md-1 text-center">平台状态</th>
              <th class="col-md-1 text-center">商客状态</th>
              <th class="col-md-1 text-center">禁售(开)</th>
              <th class="col-md-3 text-center">操作</th>
            </tr>
          </thead>
        <tbody>
          <tr ng-repeat="obj in objs">
            <td class="">
              产品名称：{{obj.sale_name}}<br> 产品编号：{{obj.sale_code}}
              <br> 平台成本价：{{obj.plat_cost_price}} 元 / 商客价：{{obj.sk_price}} 元 / 市场价：{{obj.market_price}} 元
            </td>
            <td class="text-center">
              <br/> {{obj.sale_genre}}
            </td>
            <td class="text-center"><br>
              <p ng-show="obj.sale_state == '0'">草稿</p>
              <p ng-show="obj.sale_state == '1'">已上架</p>
              <p ng-show="obj.sale_state == '2'">已下架</p>
            </td>
            <td class="text-center"><br>
              <p ng-show="obj.sk_state == '0'">已上架</p>
              <p ng-show="obj.sk_state == '1'">已下架</p>
            </td>
            <td class="" style="vertical-align:middle">
              <label class="i-switch bg-success" ng-init="obj.isSelected" style="margin-left:25%">
                <input type="checkbox" ng-model="obj.isSelected" ng-change="onChange(obj.isSelected, obj.sale_code)">
                <i></i>
              </label>
            </td>
            <td class="text-center">
              <a ng-click="stop(obj)" class="btn btn-primary btn-xs"></a>
              <a ng-click="start(obj)" class="btn btn-danger btn-xs">上架</a>
              <a ng-click="tbplatform(obj)" class="btn btn-warning btn-xs">同步平台状态</a>
              <a ng-click="skset(obj.id,obj.sale_code,obj.sale_name,obj.sk_price, obj.plat_cost_price)" ng-show="obj.sk_state == '1'" class="btn btn-success btn-xs" >商客专用设置</a>
              <a ng-click="styleset(obj)" class="btn btn-info btn-xs" >样式设置</a>
              
            </td>
          </tr>
        </tbody>
      </table>
  
      <div class="text-right">
        <pagination total-items="bigTotalItems" ng-model="bigCurrentPage" ng-change="load()" previous-text="上一页" next-text="下一页"
          first-text="首页" last-text="尾页" max-size="maxSize" boundary-links="true" rotate="false" items-per-page="itemsPerPage"
          class="m-t-none m-b">
        </pagination>
      </div>
  
    </div>
  </div>
</div>